.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 80px;
  height: 100vh;
  background: var(--lvv-color-bg-2, #1c1d21);
  /* border-right: 1px solid var(--lvv-color-line-2, rgba(255, 255, 255, 0.12)); */
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 0;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--lvv-color-text-tertiary, rgba(237, 240, 253, 0.5));
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover {
  background: var(--lvv-color-fill-transparency-hover, rgba(229, 236, 255, 0.14));
  color: var(--lvv-color-text-secondary, rgba(246, 247, 255, 0.7));
}

.nav-item.active {
  background: transparent;
  color: var(--lvv-color-main-default, #00cae0);
  font-weight: 500;
  box-shadow: none;
}

.nav-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.nav-item.active .nav-label {
  font-weight: 600;
}

.sidebar-bottom {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credit-display {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credit-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.credit-amount {
  font-size: 12px;
  color: var(--lvv-color-main-default, #00cae0);
}

/* 用户信息按钮样式 */
.user-info-btn {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 202, 224, 0.1);
  border: 1px solid rgba(0, 202, 224, 0.2);
  color: #00cae0;
  flex: 1;
  min-width: 0;
}

.user-info-btn:hover {
  background: rgba(0, 202, 224, 0.15);
  border-color: rgba(0, 202, 224, 0.3);
}

.user-phone-display {
  font-size: 12px;
  font-weight: 600;
  color: #00cae0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.upgrade-text {
  font-size: 10px;
  color: var(--lvv-color-common-orange-1, #ff7a00);
  font-weight: 600;
  background: var(--lvv-color-warning-bg, rgba(255, 207, 48, 0.2));
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--lvv-color-warning-primary, #ffcf30);
}

.bottom-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sidebar .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  background: transparent !important;
  border: none !important;
  border-radius: 8px;
  color: var(--lvv-color-text-tertiary, rgba(237, 240, 253, 0.5)) !important;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.sidebar .action-btn:hover {
  background: var(--lvv-color-fill-transparency-hover, rgba(229, 236, 255, 0.14)) !important;
  color: var(--lvv-color-text-secondary, rgba(246, 247, 255, 0.7)) !important;
  transform: none !important;
  box-shadow: none !important;
}

.sidebar .action-btn:active,
.sidebar .action-btn:focus {
  background: transparent !important;
  color: var(--lvv-color-text-tertiary, rgba(237, 240, 253, 0.5)) !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.action-icon {
  font-size: 16px;
}

.action-text {
  font-size: 10px;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar.mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1001;
    transform: translateX(0);
    border-right: none;
    border-bottom: 1px solid var(--lvv-color-line-2, rgba(255, 255, 255, 0.12));
  }

  .sidebar.mobile .sidebar-content {
    flex-direction: row;
    padding: 0 16px;
    height: 60px;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar.mobile .logo {
    display: none;
  }

  .sidebar.mobile .sidebar-nav {
    display: none;
  }

  .sidebar.mobile .sidebar-bottom {
    flex-direction: row;
    padding: 0;
    gap: 8px;
  }

  .sidebar.mobile .membership-offer {
    display: none;
  }

  .sidebar.mobile .bottom-actions {
    flex-direction: row;
    gap: 4px;
  }

  .sidebar.mobile .action-btn {
    width: 32px;
    height: 32px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: var(--lvv-color-text-tertiary, rgba(237, 240, 253, 0.5)) !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .sidebar.mobile .action-icon {
    font-size: 14px;
  }

  .sidebar.mobile .action-text {
    font-size: 8px;
  }

  /* Mobile Menu Toggle Button - Replace Logo */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }

  .mobile-menu-toggle:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  }

  .mobile-menu-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  }

  .mobile-menu-toggle .nav-icon {
    font-size: 18px;
    margin-bottom: 0;
  }
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--lvv-color-bg-2, #1c1d21);
  border-bottom: 1px solid var(--lvv-color-line-2, rgba(255, 255, 255, 0.12));
  z-index: 1000;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-dropdown.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.dropdown-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--lvv-color-text-tertiary, rgba(237, 240, 253, 0.5));
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dropdown-item:hover {
  background: var(--lvv-color-fill-transparency-hover, rgba(229, 236, 255, 0.14));
  color: var(--lvv-color-text-secondary, rgba(246, 247, 255, 0.7));
}

.dropdown-item.active {
  background: var(--lvv-color-fill-transparency-hover, rgba(0, 202, 224, 0.1));
  color: var(--lvv-color-main-default, #00cae0);
  font-weight: 600;
}

.dropdown-icon {
  font-size: 18px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.dropdown-label {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

@media (max-width: 480px) {
  .sidebar.mobile {
    height: 56px;
  }

  .sidebar.mobile .sidebar-content {
    height: 56px;
    padding: 0 12px;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-toggle .nav-icon {
    font-size: 16px;
  }

  .mobile-dropdown {
    top: 56px;
  }

  .dropdown-content {
    padding: 12px;
  }

  .dropdown-item {
    padding: 10px 12px;
    font-size: 13px;
  }

  .dropdown-icon {
    font-size: 16px;
    margin-right: 10px;
    width: 18px;
    height: 18px;
  }

  .dropdown-label {
    font-size: 13px;
  }

  .sidebar.mobile .action-btn {
    width: 28px;
    height: 28px;
  }

  .sidebar.mobile .action-icon {
    font-size: 12px;
  }
}

